package com.songcan.model.oauth;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 * 菜单权限表
 * </p>
 *
 * @author jobob
 * @since 2020-04-29
 */
@Data
@TableName("sys_menu")
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
public class SysMenu implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 菜单ID
     */
    @TableId(value = "menu_id", type = IdType.ID_WORKER)
    private Long menuId;

    /**
     * 菜单名称
     */
    private String name;

    /**
     * 菜单权限标识
     */
    private String scope;

    /**
     * 前端URL
     */
    private String path;

    /**
     * 父菜单ID
     */
    private Long parentId;

    /**
     * 图标
     */
    private String icon;

    /**
     * 编码
     */
    private String code;

    /**
     * 排序值
     */
    private Integer sort;

    /**
     * 0-开启，1- 关闭
     */
    private Integer keepAlive;

    /**
     * 菜单类型 （0菜单 1按钮）
     */
    private Integer type;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 更新时间
     */
    private Date updateTime;

    /**
     * 逻辑删除标记(0--正常 1--删除)
     */
    private Integer delFlag;

    private String method;

    private String url;

    private String redirect;

    private String component;

    private Integer status;

    private String title;

    @TableField(exist = false)
    private String role;
}
